#pragma once
#include "base/eventloopthread.h"
#include "base/function.hpp"
#include "base/log.h"
#include "base/config.h"

#include <stdio.h>
namespace net_tools{
class Eventloop;
class Logthread{
 public:
  Logthread(std::string app_name = Config::APP_NAME,FILE* file_stream = nullptr);
  ~Logthread();
 private:
  net_tools::Log             log_;
  net_tools::Eventloopthread logthread_;
  net_tools::Eventloop*      eventloop_;
};

} // namespace net_tools